count down from G_MAXUINT to avoid clashes with application-added DND
authorMichael Natterer <mitch@imendio.com>
Wed, 22 Mar 2006 10:39:51 +0000 (10:39 +0000)
committerMichael Natterer <mitch@src.gnome.org>
Wed, 22 Mar 2006 10:39:51 +0000 (10:39 +0000)
commitca658057e5bc60af2dc7b8ce026095d319398281
treed0cfa309c236a7dc9efcacf921be45484f8d161a
parent0c230f60610f22b537d206e3fe64fdebbb609bf7
count down from G_MAXUINT to avoid clashes with application-added DND

2006-03-22  Michael Natterer  <mitch@imendio.com>

* gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): count down
from G_MAXUINT to avoid clashes with application-added DND
targets.

* gtk/gtktextview.c (gtk_text_view_init): set an empty
GtkTargetList on the drag_dest so it is not NULL when a derived
class' init() function is called.

(gtk_text_view_target_list_notify): copy the text buffer's paste
targets into the view's destinstion target list (preserving
application-added DND targets), instead of replacing the view's
target list. Fixes bug #334399.
ChangeLog
ChangeLog.pre-2-10
gtk/gtktextbuffer.h
gtk/gtktextview.c